package com.yyh2;

public class Girl {
    //定义属性
    //姓名属性
    private String name;
    private double height;
    private double weight;
    //创建构造函数
    public Girl(String name,double height,double weight){
        this.name = name;
        this.height = height;
        this.weight = weight;
    }

    //定义行为方法
    //洗衣服方法
    public void wash(){
        System.out.println("女朋友帮我洗衣服");
    }
    //做饭方法
    public void cook(){
        System.out.println("女朋友给我做饭");
    }
    //展示方法
    public void show(){
        System.out.println("我女朋友叫"+name+",身高"+height+"厘米，体重"+weight+"斤");
    }
}
